/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.ncsu.utils;

import com.sun.spot.edemo.EDemoBoard;

/**
 *
 * @author me
 */
public class TemperatureDataReading {
    private long timestamp;
    private double celcius;

    public TemperatureDataReading(long time, double c) {
        timestamp = time;
        celcius = c;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public double getCelcius() {
        return celcius;
    }

    public double getFahrenheit() {
        return EDemoBoard.getInstance().getADCTemperature().convertC2F(celcius);
    }

}
